package com.gykj.transactional.service.impl;

import com.gykj.transactional.dao.Itransaction;
import com.gykj.transactional.service.ITransaction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Author: zhaojl
 * @Date: 2019/1/16 上午8:59
 * @Version: 1.0
 */
@Transactional
@Service
public class TransactionImpl implements ITransaction {

    @Autowired
    Itransaction itransaction;

    @Override
    public void addSql(Map map) {
        itransaction.addSql(map);

    }

    @Override
    public List<Map> querySql() {
        return itransaction.querySql();
    }
}
